Downloading file 'data/cells3d.tif' from 'https://gitlab.com/scikit-image/data/-/raw/master/cells3d.tif' to '/home/biagio/.var/app/com.visualstudio.code/cache/scikit-image/0.19.3'.
*Show multi-channel CYX image with options for horizontal, square, or multi-row layout.
Parameters: layout (str): Layout type - “horizontal”, “square”, or “multirow”. num_cols (int): Number of columns for the “multirow” layout. Ignored for other layouts.*
Plots 2D slices of a 3D image alongside a prior specified axis. Args: t: a 3D numpy.ndarray or torch.Tensor axis: axis to split 3D array to 2D images figsize, cmap: passed to plt.imshow nrow: passed to torchvision.utils.make_grid return_grid: Whether the grid should be returned for further processing or if the plot should be displayed. add_to_existing: if set to true, no new figure will be created. Used for mask overlays
Parameters: - images: list of images to display. - ncols (int): number of columns in the grid. - figsize (tuple, optional): figure size in inches. - title (list, optional): list of titles corresponding to each image. - spacing (float, optional): spacing between subplots. - ctx: additional context passed to the plt.Axes.imshow function. - **kwargs: additional keyword arguments passed to plt.Axes.imshow.
Returns: - axes: matplotlib axes containing the grid of images.*
*Display a slice of the image tensor on a given axis with optional dashed lines.
Parameters: ax (matplotlib.axes._subplots.AxesSubplot): The axis object to display the slice on. plane (numpy.ndarray): A 2D numpy array representing the slice of the image tensor. cmap (str, optional): Colormap to use for displaying the image. Defaults to “gray”. title (str, optional): Title for the plot. Defaults to None. dashed_lines (list, optional): A list of indices where dashed lines should be drawn on the plane.*
*Visualize slices of a 3D image tensor along its planes, rows, and columns.
Parameters: data (numpy.ndarray): A 3D numpy array representing the image tensor. planes (tuple): A tuple containing the indices of the planes to visualize. If None, defaults to middle slices.*
*Visualizes the provided data using Plotly’s interactive imshow function with animation support.
Args: data (np.array or pd.DataFrame): The data to be visualized, typically a 2D array representing an image sequence. order (str): The order of dimensions in the data (e.g., ‘CZYX’).
*Plot a 3D volume using Plotly. The function assumes that ‘values’ is a 3D array representing the volume data.
Parameters: values (numpy.ndarray): A 3D array of pixel values representing the volume. opacity (float, optional): Opacity level for the surfaces in the volume plot. Defaults to 0.1. min (float, optional): Minimum threshold multiplier for the visualization. Defaults to 0.1. max (float, optional): Maximum threshold multiplier for the visualization. Defaults to 0.8. surface_count (int, optional): Number of surfaces to display in the volume plot. Defaults to 5. width (int, optional): Width of the plotted figure. Defaults to 800. height (int, optional): Height of the plotted figure. Defaults to 600.
Returns: None*
plot_volume(data[:, 50:150, 50:150])
Unable to display output for mime type(s): application/vnd.plotly.v1+json